/*
* © 2010 Autodata Solutions Company. All Rights Reserved
* This source code is the confidential and proprietary information of Autodata Solutions Company.
* The user shall not, in whole or in part, copy, publish, disclose or make any use of this source code
* without the prior written consent of Autodata Solutions Company.
*/
Ext.ns('net.autodata.swatch');
(function () {
	
	/**
	 * @class SwatchWrapper
	 * @extends Ext.Component
	 * @namespace net.autodata.swatch
	 */
	var Wrapper = Ext.extend(Ext.BoxComponent, {
		height: undefined,
		width: undefined,
		
		autoEl: {
			tag: 'em',
			cls: 'swatch-wrapper'
		},
		
		swatch: undefined,
				
		onRender: function ()
		{
			Wrapper.superclass.onRender.apply(this, arguments);
			if (this.swatch) {
				this.swatch.render(this.el.dom);
			}
		}
	});
	
	net.autodata.swatch.SwatchWrapper = Wrapper;
})();